import request from "@/utils/request";

const COINS_BASE_URL = "/api/v1/coinsCashRecords";

const cashApi = {
  getPage(data?: Object) {
    return request({
      url: `${COINS_BASE_URL}/page`,
      method: "post",
      data,
    });
  },
  audit(data: object) {
    return request({
      url: `${COINS_BASE_URL}/audit`,
      method: "put",
      data,
    });
  },
  accounts(data: object) {
    return request({
      url: `${COINS_BASE_URL}/transfer`,
      method: "put",
      data,
    });
  },
};

export default cashApi;
